﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UniRlv.COL
{
    public class PrintInfo:BaseEntity
    {
        public int TaskID { get;set;}
        /// <summary>
        /// 源打印信息ID，为任务添加打印信息时，需要设置该字段值为所选打印信息的ID  2021-7-27
        /// </summary>
        public int SrcID { get; set; }
        public int StationNum { get; set; }
        public int SubDeviceNum { get; set; }
        public string Name { get; set; }
        public string InitString { get; set; }
        public string TemplatePath { get; set; }
        public string CodePath { get; set; }
        public int PrintWord { get; set; }
        public int PrintQty { get; set; }

        public override bool Equals(object obj)
        {
            if (obj != null && obj is PrintInfo)
            {
                PrintInfo objComp = obj as PrintInfo;

                return objComp.ID == this.ID ;
            }

            return false;
        }

        public override string ToString()
        {
            return "设备名称=" + Name + "，工位号=" + StationNum + "，初始化字符串=" + InitString;
        }
    }
}
